/**
 * Copyright &copy; 2017-2020 <a href="http://www.fosung.com/">FosungFrame</a> All rights reserved.
 */
package com.fosung.frame.tsdemo.entity.notice;

import org.hibernate.validator.constraints.Length;

import com.fosung.frame.common.persistence.DataEntity;

/**
 * 通知信息Entity
 * @author liym
 * @version 2017-07-05
 */
public class Notice extends DataEntity<Notice> {
	
	private static final long serialVersionUID = 1L;
	private String categoryId;		// 栏目
	private String moduleIds;		// 行业
	private String levelIds;		// 层级
	private String title;		// 标题
	private String image;		// 图片
	private String content;		// 内容
	private String status;		// 状态
	private String name;		
	private String categoryName;	
	
	
	public Notice() {
		super();
	}

	public Notice(String id){
		super(id);
	}

	@Length(min=1, max=100, message="栏目长度必须介于 1 和 100 之间")
	public String getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(String categoryId) {
		this.categoryId = categoryId;
	}
	
	@Length(min=1, max=255, message="行业长度必须介于 1 和 255 之间")
	public String getModuleIds() {
		return moduleIds;
	}

	public void setModuleIds(String moduleIds) {
		this.moduleIds = moduleIds;
	}
	
	@Length(min=1, max=255, message="层级长度必须介于 1 和 255 之间")
	public String getLevelIds() {
		return levelIds;
	}

	public void setLevelIds(String levelIds) {
		this.levelIds = levelIds;
	}
	
	@Length(min=1, max=255, message="标题长度必须介于 1 和 255 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=1, max=255, message="图片长度必须介于 1 和 255 之间")
	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@Length(min=1, max=255, message="状态长度必须介于 1 和 255 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	
}